<?php /* Smarty version 2.6.20, created on 2017-03-16 21:42:08
         compiled from admin_order.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'admin_order.htm', 66, false),)), $this); ?>
<script src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery-1.4.4.min.js" type="text/javascript"></script><header>
	<div class="nav-w">
	<section class="nav-s"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php"><nav>用户中心</nav></a></section>
		<section class="nav-c">
            <span class="select">
                <?php if ($_GET['status'] == '1'): ?>等待付款
                <?php elseif ($_GET['status'] == '2'): ?>等待发货
                <?php elseif ($_GET['status'] == '3'): ?>已经发货
                <?php elseif ($_GET['status'] == '4'): ?>已经完成
                <?php elseif ($_GET['status'] == '5'): ?>等待退货
                <?php elseif ($_GET['status'] == '6'): ?>退货完成
                <?php elseif ($_GET['status'] == '0'): ?>已经取消
                <?php else: ?>全部订单<?php endif; ?>
                <em></em>
            </span>
            <div style="display:none;" class="i-select">
                <ul>
                    <li key="" class="sub-line"><a href="main.php?m=product&s=admin_buyorder">全部订单</a></li>
                    <li key="1"><a href="main.php?m=product&s=admin_buyorder&status=1">等待付款</a></li>
                    <li key="2"><a href="main.php?m=product&s=admin_buyorder&status=2">等待发货</a></li>
                    <li key="3"><a href="main.php?m=product&s=admin_buyorder&status=3">已经发货</a></li>
                    <li key="4"><a href="main.php?m=product&s=admin_buyorder&status=4">已经完成</a></li>
                    <li key="0"><a href="main.php?m=product&s=admin_buyorder&status=0">已经取消</a></li>
                </ul>
            </div>
        </section>
	<section class="nav-e"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
"><nav>首页</nav></a></section>
    </div>
</header>
<script>
$(function(){
	$(".select").click(function(){ 
		var obj=$(this);
		$(this).next().slideToggle("fast",function(){
		if($(obj).next().is(":visible")){
			$(document).one('click',function(){
				$(".select").next().slideUp("fast");
			});
		}});
	});
	$(".i-select li").click(function(){
		var str=$(this).html();
		$(this).parent().parent().prev().html(str+" <em class='up'></em>");
		$(this).parent().parent().slideToggle();
	});
});
</script>
<link href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/css/buyorder.css" rel="stylesheet" type="text/css" />
<section class="order">
<?php $_from = $this->_tpl_vars['blist']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['buylist']):
?>
<div class="item">
 	<div class="top"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php?m=product&s=admin_orderdetail&id=<?php echo $this->_tpl_vars['buylist']['order_id']; ?>
"><?php echo $this->_tpl_vars['buylist']['order_id']; ?>
</a></div>	       
    <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php?m=product&s=admin_orderdetail&id=<?php echo $this->_tpl_vars['buylist']['order_id']; ?>
">
    <?php $_from = $this->_tpl_vars['buylist']['product']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['plist']):
?>
        <dl class="clearfix">
        <dt><img height="80" width="80" src="<?php if (! $this->_tpl_vars['plist']['pic']): ?>image/default/nopic.gif<?php else: ?><?php echo $this->_tpl_vars['plist']['pic']; ?>
<?php endif; ?>"></dt>
        <dd>
            <p class="p-name"><?php echo $this->_tpl_vars['plist']['name']; ?>
</p>
            <p class="p-price"><strong><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['plist']['price']; ?>
</strong> x <?php echo $this->_tpl_vars['plist']['num']; ?>
</p>
            <p class="p-detail">产品编号:<?php echo $this->_tpl_vars['plist']['code']; ?>
</p>
        </dd>
        </dl>
    <?php endforeach; endif; unset($_from); ?>
    </a>
 	<div class="bottom">
    	实付款:&nbsp;&nbsp;<span class="p-name"><strong><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['buylist']['cost']+$this->_tpl_vars['buylist']['freight'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</strong></span>
        <span>
        <?php echo $this->_tpl_vars['buylist']['statu_text']; ?>

        <?php echo $this->_tpl_vars['buylist']['next_action']; ?>

        <?php if ($this->_tpl_vars['buylist']['status'] == 3): ?>
            <a class="buttons" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php?m=product&s=admin_buyorder&flag=4&id=<?php echo $this->_tpl_vars['buylist']['order_id']; ?>
" onclick="if(!confirm('确认收货么？')){ return false;} " >确认收货</a>
            <?php endif; ?>
        </span>
    </div>	   
</div>
<?php endforeach; else: ?>
<div class="itemsNull">
    <h3>没有搜索到相关宝贝</h3>
</div>
<?php endif; unset($_from); ?>
<?php echo $this->_tpl_vars['blist']['page']; ?>

</section>